
#ifndef PAGE_H
#define PAGE_H

class page
{
private:
    int begin;
    int end;
    bool valid;
    bool in_use;

public:
    inline page()
    {
        begin = end = 0;
        valid = false;
        in_use = false;
    }

    inline ~page() {}

    inline int get_begin() const
    {
        return begin;
    }

    inline void set_begin(int value)
    {
        begin = value;
    }

    inline int get_end() const
    {
        return end;
    }

    inline void set_end(int value)
    {
        end = value;
    }

    inline bool is_valid() const
    {
        return valid;
    }

    inline void set_valid(bool value)
    {
        valid = value;
    }
    inline bool is_in_use() const { return in_use; }
    inline void set_in_use(bool value) { in_use = value; }
};

#endif